import { defHttp } from '/@/utils/http/axios';
import { IDeleteOperationLogsDeleteQuery } from '/@/types/system/senior/logs/operationLogs/delete';
import {
  IPostOperationLogsQueryQuery,
  IPostOperationLogsQueryResponse,
} from '/@/types/system/senior/logs/operationLogs/query';
import { IGetOperationLogsExcelQuery } from '/@/types/system/senior/logs/operationLogs/excel';

/**
 * 删除操作日志
 */
export const apiDeleteOperationLogsDeleteQuery = (params: IDeleteOperationLogsDeleteQuery) =>
  defHttp.delete({ url: `/system/senior/logs/operationLogs/delete`, params });
/**
 * 操作日志列表
 */
export const apiPostOperationLogsQueryQuery = (params: IPostOperationLogsQueryQuery) =>
  defHttp.post<IPostOperationLogsQueryResponse>({
    url: `/system/senior/logs/operationLogs/query`,
    params,
  });
/**
 * 操作日志导出
 */
export const apiGetOperationLogsExcelQuery = (params: IGetOperationLogsExcelQuery) =>
  defHttp.get({ url: `/system/senior/logs/operationLogs/excel`, params });
